package io;
//使用对象输入流进行对象的反序列化

import java.io.*;

public class OISDemo {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        FileInputStream fis=new FileInputStream("jmq.obj");
        ObjectInputStream ois=new ObjectInputStream(fis);
        Person person= (Person) ois.readObject();
        System.out.println(person.getName()+person.getGender()+person.getAge()+person.getOtherInfo());
        ois.close();
    }
}
